﻿<%@ Control Language="C#" Inherits="Shop.Framework.Control.CategoryBuilderControl" %>


<%if(Categories.Count !=0){ %>
<ul id="categoryList">
    <%foreach (var cat in Categories) { %>
          <%--<li><%=Html.RouteLink(cat.Name,"Default", new { Controller = "Product", Action = "GetProductsByCategory", idCategory = cat.IdCategory }) %></li>--%>
          <li><%=Html.RouteLink(cat.Name, new { Controller = "Product", Action = "GetProductsByCategory", idCategory = cat.IdCategory, CategoryName = cat.Name })%></li>
          
    <%} %>
</ul>
<%} %>
